package com.longxi.tianjintianbao.ui.activity.houseinspection;

import android.support.v4.view.ViewPager;
import android.widget.RadioGroup;

import com.flyco.tablayout.SegmentTabLayout;
import com.flyco.tablayout.SlidingTabLayout;
import com.longxi.tianjintianbao.R;
import com.longxi.tianjintianbao.ui.base.BaseActivity;
import com.longxi.tianjintianbao.ui.presenter.houseinspection.HomeInspectionAtPresenter;
import com.longxi.tianjintianbao.ui.view.houseinspection.IHouseInspectionAtView;

import butterknife.BindView;

/**
 * Created by cxw on & 2018/9/19
 */
public class HomeInspectionActivity extends BaseActivity<IHouseInspectionAtView, HomeInspectionAtPresenter> implements IHouseInspectionAtView {

    @BindView(R.id.tabLayout)
    SegmentTabLayout mTabLayout;
    @BindView(R.id.vp)
    ViewPager mViewPager;

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_home_inspection;
    }

    @Override
    protected HomeInspectionAtPresenter createPresenter() {
        return new HomeInspectionAtPresenter(this);
    }

    @Override
    public void initData() {
        super.initData();
        mPresenter.setBar();
    }

    @Override
    public void initListener() {
        super.initListener();
        mPresenter.initListener();
    }

    @Override
    public SegmentTabLayout getTabLayout() {
        return mTabLayout;
    }

    @Override
    public ViewPager getViewPager() {
        return mViewPager;
    }
}
